function tabbing(e){
	e = e || window.event;
	var target = e.target || e.srcElement;
	var oContent = zJQ.byId("content");
	var oTabs = zJQ.byClass("tabs", oContent)[0];
	var tab1 = zJQ.byTag("h5", oTabs)[0];
	var tab2 = zJQ.byTag("h5", oTabs)[1];
	var oDiv1 = zJQ.next(oTabs);
	var oDiv2 = zJQ.next(oDiv1);
	if(target == tab1){
		oDiv1.style.display = "block";
		tab1.style.backgroundColor = "#fff";
		oDiv2.style.display = "none";
		tab2.style.backgroundColor = "#f0f7ff";
		return;
	}
	oDiv1.style.display = "none";
	tab1.style.backgroundColor = "#f0f7ff";
	oDiv2.style.display = "block";
	tab2.style.backgroundColor = "#fff";
};
function focusing(e){
	e = e || window.event;
	var target = e.target || e.srcElement;
	var oLabel = zJQ.prev(target);
	oLabel.style.display = "none";
	zJQ.addEvent(target, "blur", function(){
		if(target.value == ""){
			oLabel.style.display = "block";
		}
	});
};
window.onload = function(){
	var oForm = zJQ.byId("search-form");
	var oInput = zJQ.byId("search-input");
	zJQ.addEvent(oInput, "focus", focusing)

	var oContent = zJQ.byId("content");
	var oTabs = zJQ.byClass("tabs", oContent)[0];
	zJQ.addEvent(oTabs, "click", tabbing);
};